/***********************************************************
File name     : xfile.h
Author name   : lancz
Email address : chengzhang.lan@jointlighting.com
Create time   : 2022-09-07 16:09:48
***********************************************************/
#ifndef __XFILE_H__
#define __XFILE_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "xstddef.h"

xt_s32 XfileIsExists(xt_rostring path);
xt_s32 XfileSize(xt_rostring path);
xt_s32 XfileWrite(xt_rostring path, void *data, xt_s32 size);
xt_s32 XfileRead(xt_rostring path, void *buf, xt_s32 size);
xt_s32 XfileRemove(xt_rostring path);
xt_string XfileTemp(xt_string prefix, xt_s32 buf_size);
xt_string XfileBasename(xt_rostring path, xt_string buf, xt_s32 size);
xt_string XfileDirname(xt_rostring path, xt_string buf, xt_s32 size);
xt_s32 XfileMove(xt_rostring src, xt_rostring dst);
xt_s32 Xmkdir(const char *dir);
char *dirname(const char *path);
#ifdef __cplusplus
}
#endif
#endif
